﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartProduction.Domain
{
    /// <summary>
    /// 生产任务
    /// </summary>
    public class STask:BaseModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int Tid {  get; set; }
        /// <summary>
        /// 任务编码
        /// </summary>
        [StringLength(50)]
        public string TaskNode {  get; set; }
        /// <summary>
        /// 任务mc
        /// </summary>
        [StringLength(50)]
        public string TaskName { get; set; }
        /// <summary>
        /// 任务类型
        /// </summary>
        [StringLength(50)]
        public string TaskType { get; set; }
        /// <summary>
        /// 任务状态
        /// </summary>
        public string TaskStatus { get; set; }
        /// <summary>
        /// 物料
        /// </summary>
        public int MaterialServerId { get; set; }

        /// <summary>
        /// 物料规格
        /// </summary>
        [StringLength(50)]
        public string Specification { get; set; }
        /// <summary>
        /// 物料单位
        /// </summary>
        [StringLength(50)]
        public string Unit { get; set; }
        /// <summary>
        /// 生产数量
        /// </summary>
        public int Num { get; set; }
        /// <summary>
        /// 开工时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 完工时间
        /// </summary>
        public DateTime CompletionTime { get; set; }
        /// <summary>
        /// 物料清单
        /// </summary>
        public int MaterialListId { get; set; }
        /// <summary>
        /// 物料清单版本
        /// </summary>
        [StringLength(50)]
        public string Version { get; set; }

        /// <summary>
        /// 数据状态
        /// </summary>
        [StringLength(50)]
        public string DataStatus {  get; set; }
        /// <summary>
        /// 工艺路线主键
        /// </summary>
        public int Processid { get; set; }
        /// <summary>
        /// 工艺版本
        /// </summary>
        public string ProcessVer { get; set; }
        /// <summary>
        ///  部门管理主键
        /// </summary>
        public int DepartId { get; set; }
        
    }
}
